package com.zeros.mysplash.bean;

import lombok.Data;

/**
 * 请求闪屏页json数据 on 2017/12/20.
 */
@Data
public class Common {

    /**
     * status : 200
     * message : 获取闪屏成功
     * debug : null
     * attachment : {"flashScreen":null}
     */

    private int status;     // 返回码，200成功
    private String message;
    private String debug;
    private AttachmentBean attachment;  // 具体内容

    public boolean isValid() {
        return status == 200;
    }

    public boolean isServiceBlock() {
        return status == 500;

    }

    public boolean isNeedOut() {
        return status == 1000;

    }

    @Data
    public static class AttachmentBean {
        /**
         * flashScreen : null
         */
        private Splash flashScreen;

    }
}
